<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AdList.ascx.cs" Inherits="IGlobalist.Cms.Admin.Control.AdList" %>
<div class="frame">
<div style="text-align:center;height:20px;width:600px">
    <asp:Label runat="server" ID="lblStatus" ForeColor="#1A5688" Font-Bold="True" Font-Size="Medium"/>
</div>
<br />
<asp:GridView ID="gvAd" runat="server"  AllowPaging="false" AutoGenerateColumns="False"
            CellPadding="6" ForeColor="#333333"  OnRowCommand="gvAd_RowCommand" >
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <Columns>
                <asp:TemplateField HeaderText="Name">
                    <ItemTemplate>
                        
                <asp:Label ID="lblName" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>'></asp:Label>
                   </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="Description">
                    <ItemTemplate>
                       <asp:Label ID="lblDescrption" runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Description") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                
                <asp:TemplateField HeaderText="Action">                                
                    <ItemTemplate>
                        <asp:ImageButton ID="imgEdit" ImageUrl="~/Admin/Images/edit.gif"  runat="server"   CommandName="editAd" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' />
                <asp:ImageButton ID="ingDelete" ImageUrl="~/Admin/Images/delete.gif" runat="server" OnClientClick="return confirm('Are you sure you want to delete?');"  CommandName="delAd" CommandArgument='<%# DataBinder.Eval(Container, "DataItem.ID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>                                   
                                                                          
            </Columns>
            
        </asp:GridView>   
   </div>